package com.ido.login.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author zoub
 * 2022-12-14 10:42
 **/
@Component
public class LoginContext {

    @Autowired
    private Map<String, LoginStrategy> strategyMap;

    public LoginStrategy getStrategy(String channel) {
        return strategyMap.get(channel);
    }


}
